--for
for i = 1, 3 do
    print("i",i)
end

print("步进值是2")
for i = 1, 3,2 do
    print("i",i)
end

print("步进值是负数")
for i = 3, 1,-2 do
    print("i",i)
end

--迭代器 pairs不会中断
print("迭代器")
t={id=1,name="lisi"}
for i, v in pairs(t) do
    print(i,"=",v)
end
